import request from '@/utils/request'

export function listLumiereSubscribe(query) {
  return request({
    url: '/lumiere/subscribe/list',
    method: 'get',
    params: query
  })
}

export function listGoodsOnSale(){
  return request({
    url: '/lumiere/subscribe/listGoodsOnSale',
    method: 'get'
  })
}

export function getSpecificationByGoods(query){
  return request({
    url: '/lumiere/subscribe/listSpecifications',
    method: 'get',
    params: query,
  })
}

export function createSubscribe(data){
  return request({
    url: '/lumiere/subscribe/createSubscribe',
    method: 'post',
    data,
  })
}

export function updateSubscribe(data){
  return request({
    url: '/lumiere/subscribe/updateSubscribe',
    method: 'post',
    data,
  })
}

export function listSubscribeDetail(params){
  return request({
     url: '/lumiere/subscribe/listSubscribeDetail',
     method: 'get',
     params: params,
  })
}

export function deleteSubscribe(data) {
  return request({
    url: '/lumiere/subscribe/delete',
    method: 'post',
    data
  })
}

export function changeSubscribeStatus(id){
  return request({
    url: '/lumiere/subscribe/changeSubscribeStatus',
    method: 'post',
    params: id
  })
}

